FROM java:8-alpine
VOLUME /tmp
RUN mkdir -p /projects/app && \
    mkdir -p /projects/logs && \
    mkdir -p /projects/data && \
    mkdir -p /projects/config && \
    mkdir -p /projects/license
ADD ./business-service-0.0.1-SNAPSHOT.jar  business-service.jar
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone
ENTRYPOINT ["java","-jar","business-service.jar","--spring.config.location=/projects/config/bootstrap.yml","--logging.config=/projects/config/logback.xml"]